package cn.com.bob.library.entity;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;
import javax.validation.constraints.NotNull;

import java.io.Serializable;

import java.util.Date;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

/**
* 
* @TableName borrow
*/
@Data
public class Borrow implements Serializable {

    /**
    * 
    */
    @NotNull(message="[]不能为空")
    @ApiModelProperty("")
    private Integer userId;
    /**
    * 
    */
    @NotNull(message="[]不能为空")
    @ApiModelProperty("")
    private Integer bookId;
    /**
    * 
    */
    @ApiModelProperty("")
    private Integer quantity;
    /**
    * 
    */
    @ApiModelProperty("")
    private Integer categoryId;
    /**
    * 
    */
    @ApiModelProperty("")
    private Date borrowTime;
    /**
    * 
    */
    @ApiModelProperty("")
    private Date backTime;

    public Borrow() {
    }

    public Borrow(Integer userId, Integer bookId, Integer quantity, Integer categoryId, Date borrowTime, Date backTime) {
        this.userId = userId;
        this.bookId = bookId;
        this.quantity = quantity;
        this.categoryId = categoryId;
        this.borrowTime = borrowTime;
        this.backTime = backTime;
    }
}
